/*
 * @Description  : 路由映射
 * @Author       : Keyman
 * @Date         : 2025-11-17 16:32:37
 * @LastEditors  : Keyman
 * @LastEditTime : 2025-11-20 00:29:13
 */

import { lazy } from "react";
const Dashboard = lazy(() => import("../page/dashboard"));
const UserList = lazy(() => import("../page/users"));
const AddUser = lazy(() => import("../page/users/addUsers"));
const Tenement = lazy(() => import("../page/estate/buildingManage"));
const Room = lazy(() => import("../page/estate/roomManage"));
const Car = lazy(() => import("../page/estate/carManage"));
const Repair = lazy(() => import("../page/repair/repair"));
const Contract = lazy(() => import("../page/finance/contract"));
const Surrender = lazy(() => import("../page/finance/contractInfo"));
const Bill = lazy(() => import("../page/finance/billManage"));
const Merchants = lazy(() => import("../page/merchants/merchants"));
const All = lazy(() => import("../page/operation/allOperation"));
const Article = lazy(() => import("../page/operation/articles"));
const Comments = lazy(() => import("../page/operation/comments"));
const Equipment = lazy(() => import("../page/equipment/equipment"));
const Enengy = lazy(() => import("../page/energy/energy"));
const Settings = lazy(() => import("../page/settings"));
const Personal = lazy(() => import("../page/personal"));

export const compomentMap: { [key: string]: JSX.Element } = {
  "/dashboard": <Dashboard />,
  "/users/list": <UserList />,
  "/users/add": <AddUser />,
  "/estate/tenement": <Tenement />,
  "/estate/room": <Room />,
  "/estate/car": <Car />,
  "/repair": <Repair />,
  "/finance/contract": <Contract />,
  "/finance/surrender": <Surrender />,
  "/finance/bill": <Bill />,
  "/merchants": <Merchants />,
  "/operation/all": <All />,
  "/operation/article": <Article />,
  "/operation/comments": <Comments />,
  "/equipment": <Equipment />,
  "/energy": <Enengy />,
  "/settings": <Settings />,
  "/personal": <Personal />,
};
